package com.zhengxiang.onlinexamination.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zhengxiang.onlinexamination.entity.PreviewPaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预考试题记录(PreviewPaper)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-19 16:34:35
 */
public interface PreviewPaperMapper extends BaseMapper<PreviewPaper> {

    /**
     * 通过ID查询单条数据
     *
     * @param previewPaperId 主键
     * @return 实例对象
     */
    PreviewPaper queryById(Integer previewPaperId);

    /**
     * 待考试卷信息
     * @param ppvWrapper
     * @return
     */
    List<PreviewPaper> queryPaperInfo(@Param(Constants.WRAPPER) QueryWrapper<PreviewPaper> ppvWrapper);

    /**
     * 题目信息
     * @param queryWrapper
     * @return
     */
    PreviewPaper queryQuInfo(@Param(Constants.WRAPPER)  QueryWrapper<PreviewPaper> queryWrapper);

}

